<?php

declare(strict_types=1);

namespace App\Request\Chat;

use App\Request\BaseCommonRequest;

class MuteMemberRequest extends BaseCommonRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'default' => [
                'type' => 'required|in:1,2',// 1-禁言用户，2-聊天室整体禁言
            ],
            'member' => [
                'room_number' => 'required',
                'target' => 'required',
                'duration' => 'required|max:2592000',
            ],
            'room' => [
                'room_number' => 'required',
                'mute' => 'required',
            ],

        ];
    }

}